package com.nuanshui.heatedloan.module.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nuanshui.heatedloan.constant.TransactionManagerType;
import com.nuanshui.heatedloan.module.dal.mapper.MuseumModuleMapper;
import com.nuanshui.heatedloan.module.facade.MuseumModuleService;
import com.nuanshui.heatedloan.module.model.Module;
import com.nuanshui.heatedloan.module.model.ModuleForm;

@Service
@Transactional(readOnly=true,value=TransactionManagerType.MODULE_TRANSACTION_MANAGER)
public class MuseumModuleServiceImpl implements MuseumModuleService {
	
	
	@Autowired
	private MuseumModuleMapper museumModuleMapper;
	
	
	@Override
	public Module getMuseumFullModuleByMuseumIdAndModuleName(ModuleForm moduleForm){
		return museumModuleMapper.getMuseumFullModuleByMuseumIdAndModuleName(moduleForm.getMuseumId(), moduleForm.getModuleName());
	}
}
